package com.zr.eim.controller;

import com.zr.common.core.domain.AjaxResult;
import com.zr.eim.service.IEimDataHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;


/**
 * 疫情历史信息Controller
 */
@RestController
@RequestMapping("/eim/history")
public class EimDataHistoryController
{
    @Autowired
    private IEimDataHistoryService eimDataHistoryService;

    /**
     * 查询疫情历史信息
     * 需求模块：数据大屏
     */
    @PreAuthorize("@ss.hasPermi('eim:person:query')")
    @PostMapping("/getEimDataHistory")
    public AjaxResult getEimDataHistory()
    {
        return AjaxResult.success(eimDataHistoryService.getEimDataHistory());
    }

}
